package base.Day04;

public class WhileDemo
{
    public static void main(String[] args)
    {
        WhileDemo whileDemo = new WhileDemo();
//        whileDemo.test();
        whileDemo.print();
    }
    void test()
    {
          int count = 0;
          while (count < 3)
          {
              System.out.println("run a round");
              count++;
          }
    }

    void print()
    {
        for (int i = 1 ; i < 10; i++)
        {
            for (int j = 1 ; j <= i; j++)
            {
                System.out.print(i+"*"+j+"="+i*j+"\t");
            }
            System.out.println();
        }
    }
}
